/*
 * @Description: 标题部分。入参第一个统一为baseInfo的store
 */
import globalData from '@/plugins/data';
import globalMethods from '@/plugins/methods';
// globalData.isSummary 代表是处理
export default (useBaseInfo) =>
    new PrintFragment(
        globalMethods.i18n('common.subject.label'),
        `<center style='padding-top: 10px;'><span style='font-size:24px;line-height:24px;'>${
            globalData.isSummary
                ? useBaseInfo.businessData?.summary?.showTitle
                : (useBaseInfo.formInfo.subject?.value || $.i18n('common.default.subject.value2')).escapeHTML()
        }</span></center>`
    );
